CF\API\Test\AbstractPluginActionsTest S

Total Complexity 12
Dependencies 0
Dependents 0
Total lines 156
Lines of code 113
Logical lines of code 65
Comment lines 4
Methods 12
Properties 7

Methods 12

Method Rating Maintainability Complexity Lines of code
setup()
S
53 1 28
testLoginReturnsErrorIfAPIKeyOrEmailAreInvalid()
S
62 1 12
testPostAccountSaveAPICredentialsReturnsErrorIfMissingApiKey()
S
66 1 8
testPostAccountSaveAPICredentialsReturnsErrorIfMissingEmail()
S
66 1 8
testGetPluginSettingsReturnsArray()
S
65 1 10
testPatchPluginSettingsReturnsErrorForBadSetting()
S
73 1 5
testGetPluginSettingsHandlesSuccess()
S
70 1 6
testPatchPluginSettingsUpdatesSetting()
S
63 1 10
testPatchPluginSettingsReturnsErrorIfSettingUpdateFails()
S
63 1 10
testGetPluginSettingsCallsCreatePluginSettingObjectIfDataStoreGetIsNull()
S
73 1 5
testPatchPluginSettingsCallsApplyDefaultSettingsIfSettingIsDefaultSettings()
S
68 1 7
testGetUserConfigReturnsEmptyJson()
S
76 1 4